package cc.yugu.yhdw.webserver.persistence.hdw;

import cc.yugu.yhdw.common.domain.hdw.ExchangeAmountMoneyDivideDetail;
import cc.yugu.yhdw.common.persistence.MasterMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
/**
 * 换电次数金额划分明细信息
 * 
 * @Date:Created in 2018/6/30 14:03
 * @Author:
 * @Modified By: zjn 2018/6/30 14:03
 */ 
public interface ExchangeAmountMoneyDivideDetailMapper extends MasterMapper {
    /**
    * 根据换电次数方案id 查询表hdw_exchange_amount_money_divide_detail，返回行数
    * 
    * @Param: [exchangeAmountMoneyDivideDetail]
    * @Return: int
    * @Author By: zjn 2018/6/30  14:03
    */ 
    public int findPageCount(ExchangeAmountMoneyDivideDetail exchangeAmountMoneyDivideDetail);
    /**
    * 根据换电次数方案id 查询表，并将结果按照 换电次数 排序
    * 
    * @Param: [exchangeAmountMoneyDivideDetail]
    * @Return: java.util.List<cc.yugu.yhdw.common.domain.hdw.ExchangeAmountMoneyDivideDetail>
    * @Author By: zjn 2018/6/30  14:03
    */ 
    public List<ExchangeAmountMoneyDivideDetail> findPageResult(ExchangeAmountMoneyDivideDetail exchangeAmountMoneyDivideDetail);
    /**
    * 根据主键查询
    * 
    * @Param: [id]
    * @Return: cc.yugu.yhdw.common.domain.hdw.ExchangeAmountMoneyDivideDetail
    * @Author By: zjn 2018/6/30  14:03
    */ 
    public ExchangeAmountMoneyDivideDetail find(int id);
    /**
    * 按条件查询
    * 
    * @Param: [amount, divideId]
    * @Return: java.util.List<cc.yugu.yhdw.common.domain.hdw.ExchangeAmountMoneyDivideDetail>
    * @Author By: zjn 2018/6/30  14:03
    */ 
    public List<ExchangeAmountMoneyDivideDetail> findByAmount(@Param("amount")int amount,@Param("divideId")int divideId);
    /**
    * 插入
    * 
    * @Param: [exchangeAmountMoneyDivideDetail]
    * @Return: int
    * @Author By: zjn 2018/6/30  14:03
    */ 
    public int insert(ExchangeAmountMoneyDivideDetail exchangeAmountMoneyDivideDetail);
    /**
    * 根据主键更新
    * 
    * @Param: [exchangeAmountMoneyDivideDetail]
    * @Return: int
    * @Author By: zjn 2018/6/30  14:03
    */ 
    public int update(ExchangeAmountMoneyDivideDetail exchangeAmountMoneyDivideDetail);
    /**
    * 按条件查询
    * 
    * @Param: [exchangeAmountMoneyDivideDetail]
    * @Return: int
    * @Author By: zjn 2018/6/30  14:03
    */ 
    public int unique(ExchangeAmountMoneyDivideDetail exchangeAmountMoneyDivideDetail);
    /**
    * 根据主键删除
    * 
    * @Param: [id]
    * @Return: int
    * @Author By: zjn 2018/6/30  14:03
    */ 
    public int delete(int id);
    /**
    * 根据换电次数方案id删除
    * 
    * @Param: [divideId]
    * @Return: int
    * @Author By: zjn 2018/6/30  14:03
    */ 
    public int deleteByDivideId(int divideId);
    /**
    * 查询，返回行数
    * 
    * @Param: [exchangeAmountMoneyDivideDetail]
    * @Return: int
    * @Author By: zjn 2018/6/30  14:04
    */ 
    public int checkRepeat(ExchangeAmountMoneyDivideDetail exchangeAmountMoneyDivideDetail);
    /**
    * 删除
    * 
    * @Param: [agentId]
    * @Return: int
    * @Author By: zjn 2018/6/30  14:04
    */ 
    public int deleteByAgent(int agentId);
    /**
    * 删除
    * 
    * @Param: [agencyId]
    * @Return: int
    * @Author By: zjn 2018/6/30  14:04
    */ 
    public int deleteByAgency(int agencyId);
}
